#pragma once
#include <vector>
#include "Vertex4f.h"
class Triangle {
	int mVertIndex[3]; ///< Triangle vertex indices
 public:
	~Triangle(void){}
	Triangle(int v0 = -1, int v1 = -1, int v2 = -1){ 
		SetV1(v0); 
		SetV2(v1);
		SetV3(v2);
	}
	int GetV1(void){return mVertIndex[0];}
	int GetV2(void){return mVertIndex[1];}
	int GetV3(void){return mVertIndex[2];}
	void SetV1(int v){mVertIndex[0] = v;}
	void SetV2(int v){mVertIndex[1] = v;}
	void SetV3(int v){mVertIndex[2] = v;}

	friend std::istream& operator>> (std::istream& istream, Triangle& t)
	{
		unsigned int _v0, _v1, _v2;
		istream>>_v0>>_v1>>_v2;
		t.SetV1(_v0);
		t.SetV2(_v1);
		t.SetV3(_v2);
		return istream;
	}
};